import { useRequest } from '@/utils/request.js'

export const findUnReadMessage = data => {
	return useRequest({
		url: 'message/un/read',
		method: 'GET',
		data,
	})
}

export const listMessage = data => {
	return useRequest({
		url: 'message/list',
		method: 'GET',
		data,
	})
}

export const delMessage = data => {
	return useRequest({
		url: `message/list/delete/${data}`,
		method: 'DELETE',
	})
}